from tkinter import*
x = int(input('vveditye coordinaty x'))
y= int(input('vveditye coordinaty y'))
n = int(input('vvedyte koeffitsient uvelyicheniya'))
x1 = 0+x
y1=0*n+y
x2=50*n+x
y2=0*n+y
x3=50*n+x
y3=50*n+y
x4=100*n+x
y4=50*n+y
x5=x+100*n
y5=100*n+y
x6=0*n+x
y6=100*n+y
x7=50*n+x
y7=150*n+y
x8=0*n+x
y8=150*n+y
if x5>500 or y5>500:
    print('Razmer figuryi previshayet maximalniy razmer')
else:
    root = Tk()
    root.title('IT marathon')
    root.geometry('500x500')
    canvas = Canvas(bg='white', width=500, height=500)
    canvas.pack()
    canvas.create_polygon(x1,y1,x2,y2,x3,y3,x4,y4,x5,y5,x6,y6,x3,y3,x7,y7,x8,y8, fill='black')

    root.mainloop()

            
